﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>:- Trang rao vặt -:</title>
<link rel="stylesheet" href="<?php echo $this->webroot; ?>/css/template_thanh.css" type="text/css" />
</head>

<body>

<div id="main">
	<div id="header">
		<div id="top"></div>
		<div id="banner">
		<div id="trong"></div>
		<div id="nav">
			<div id="navigation">
					<?php echo $this->element('menu'); ?>
			</div>
		<div id="search">
			<form action="" method="post">
				<input id="searchtext" type="text" name="search" size="50" />
			</form>		
		</div>
	</div>
		</div>
	</div>
	<!--                 phan navigation - ---------------------------------------------->
			
	
		
	<div id="content">
  <!----------------------------------------------------------------------------------->
		<div id="content_left">
		<div id="khoangcachtrai"></div>			
			 <div id="duongdan"> 
			 <a class="ac">Trang chủ</a>		 
			 </div>  
		<div id="new"	 >
			<?php
				if($data==NULL){
					echo "<h2>Data Empty</h2>";
				}
				else{
					echo "<ul id=\"double\">";
					foreach($data as $item){
						echo "<li>";
						echo "<a href=\"/Raovat/catalogs/view/".$item['Catalog']['id']."\">".$item['Catalog']['tendanhmuc']."</a>";
						echo "</li>";
					}
				}
			?>
		</div>
		<!----danh sach cac danh muc con------------------>
		<div id="section_filter">
		<?php
		$datatype=$this->requestAction(array("controller"=>"types","action"=>"select")); 
				if($datatype==NULL){
					echo "<h2>Data Empty</h2>";
				}
				else{
					echo "<ul id=\"double\">";
					echo "<li><a class=\"inactive\" href=\"/Raovat/types\">Tất cả</a>";
					foreach($datatype as $item){
						echo "<li>";
						echo "<a class=\"inactive\" href=\"/Raovat/types/view/".$item['Type']['id']."\">".$item['Type']['tenloai']."</a>";
						echo "</li>";
					}
				}
			?>
			<!--
		<a class="inactive" title="" href="/raovat/khuvuc-0/loai-0/">Tất cả</a>
		<a class="inactive" title="Tin mua" href="/raovat/khuvuc-0/loai-1/">Tin mua</a>
		<a class="inactive" title="Tin bán" href="/raovat/khuvuc-0/loai-2/">Tin bán</a>
		<a class="inactive" title="Tin rao vặt" href="/raovat/khuvuc-0/loai-3/">Tin rao vặt</a>
		<a class="inactive" title="Tin doanh nghiệp" href="/raovat/khuvuc-0/loai-4/">Tin doanh nghiệp</a>
		<a class="inactive" title="Tin quảng cáo" href="/raovat/khuvuc-0/loai-5/">Tin quảng cáo</a>
		-->
		</div>
		<div id="khoangcachtrai"></div>
		<table width="100%" cellspacing="0" cellpadding="0" border="0">
			<tr>
			<td class="navtinvip" height="30">
			<div align="center">
			<span class="style2">TIN ĐĂNG VIP </span>
			</div>
			</td>
			</tr>
			</table>
		<!-- -------------------phan tin vip ----------------------------------------------->
			<div>
				<?php echo $content_for_layout; ?>
			</div>
						
		<!------------------------------------phan trang--------------------------------------------------------------->
		<div class="pagelinkbox">
			&nbsp;Trang:&nbsp;
			<span class="pagecurrent">1</span>
			<span class="pagelink">
			<a href="http://www.raovatdanang.vn/raovat/khuvuc-0/loai-0/trang-60.html">2</a>
			</span>
			<span class="pagelink">
			<a href="http://www.raovatdanang.vn/raovat/khuvuc-0/loai-0/trang-120.html">3</a>
			</span>
			<span class="pagelink">
			<a href="http://www.raovatdanang.vn/raovat/khuvuc-0/loai-0/trang-180.html">4</a>
			</span>
		</div>
		</div>
		
		<!--noi dung phai------------------------------------------------------------->
		<div id="content_right">
			<div id="dangtin"></div>
			<form action="" method="post">
			<table class="tablewhite" cellspacing="1" border="0" celpadding="0">
				<tr>
				<td class="section_title" colspan="2">
				<div class="tieude">&nbsp;Đăng nhập</div>
				</td>
				</tr>
				<tr>
				<td class="rv_tdrow3" >Username:</td>
				<td class="rv_tdrow3" >
				<input type="text" size="18" value="" name="user_name">
				</td>
				</tr>
				<tr>
				<td class="rv_tdrow3">Password:</td>
				<td class="rv_tdrow3">
				<input type="password" size="18" value="" name="user_password">
				</td>
				</tr>
				<tr>
				<td class="rv_tdrow3" colspan="2">
				<div style="display: block;">
				
				<div style="float:left">Ghi nhớ cho lần login sau</div>
				<div style="float: right">
				<input class="checkbox" type="checkbox" value="1" name="user_remember">
				</div>
				</div>
				</td>
				</tr>
				<tr>
				<td class="rv_tdrow3" align="center" colspan="2">
				<input class="fieldbutton" type="submit" value="Đăng nhập" name="login">
				</td>
				</tr>
				<tr>
				<td class="rv_tdrow3 login_bottombox" align="right" colspan="2">
				<a rel="nofollow" href="http://www.raovatdanang.vn/member.php?self=lostpass">Quên Mật Khẩu?</a>
				&nbsp;|&nbsp;
				<a rel="nofollow" href="http://www.raovatdanang.vn/member.php?self=register">Đăng Ký Thành Viên</a>
				</td>
				</tr>
				</table>
				</form>
		<div id="khoangcach"></div>
		<table class="tablewhite" cellspacing="1" border="0" celpadding="0">
				<tbody>
				<tr>
				<td class="section_title" colspan="2">
				<div class="tieude">&nbsp;Thống Kê</div>
				</td>
				</tr>
				<tr>
				<td class="statbox">
				<div class="statrow">
				<div style="float:left">
				<b class="pink">&nbsp;›&nbsp;</b>
				Tổng số chuyên mục:
				</div>
				<div style="float:right">
				<b>0</b>
				</div>
				</div>
				<div class="statrow">
				<div class="floatleft1">
				<b class="pink">&nbsp;›&nbsp;</b>
				Tổng số tin đăng:
				</div>
				<div class="floatright1">
				<b>0</b>
				</div>
				</div>
				<div class="statrow">
				<div class="floatleft1">
				<b class="pink">&nbsp;›&nbsp;</b>
				Tổng số thành viên:
				</div>
				<div class="floatright1">
				<b>0</b>
				</div>
				</div>
				<div class="clear"></div>
				</td>
				</tr>
				<tr>
				<td class="section_title" colspan="2">
				<div class="tieude">&nbsp;Đang Truy Cập</div>
				</td>
				</tr>
				<tr>
				<td class="statbox">
				<div class="statrow">
				<div class="floatleft1">
				<span class="textorange">&nbsp;›&nbsp;</span>
				Thành viên:
				</div>
				<div class="floatright1">
				<b>0</b>
				</div>
				</div>
				<div class="statrow">
				<div class="floatleft1">
				<span class="textorange">&nbsp;›&nbsp;</span>
				Khách tham quan:
				</div>
				<div class="floatright1">
				<b>0</b>
				</div>
				</div>
				<div class="statrow">
				<div class="floatleft1">
				<span class="textorange">&nbsp;›&nbsp;</span>
				Tổng cộng:
				</div>
				<div class="floatright1">
				<b>0</b>
				</div>
				</div>
				</td>
				</tr>
				</tbody>
				</table>

		</div>
	    
	</div>
	<div id="footer">
			<table class="footbar" width="960" cellspacing="0" cellpadding="0" border="0">
			<tr>
			<td class="textwhite" align="center">
			<a href="http://www.raovatdanang.vn/">Trang chủ</a>
			&nbsp;-&nbsp;
			<a title="Tin mua" href="/raovat/khuvuc-0/loai-1/">Tin mua</a>
			&nbsp;-&nbsp;
			<a title="Tin bán" href="/raovat/khuvuc-0/loai-2/">Tin bán</a>
			&nbsp;-&nbsp;
			<a title="Tin rao vặt" href="/raovat/khuvuc-0/loai-3/">Tin rao vặt</a>
			&nbsp;-&nbsp;
			<a title="Tin doanh nghiệp" href="/raovat/khuvuc-0/loai-4/">Tin doanh nghiệp</a>
			&nbsp;-&nbsp;
			<a title="Tin quảng cáo" href="/raovat/khuvuc-0/loai-5/">Tin quảng cáo</a>
			&nbsp;-&nbsp;
			<a rel="nofollow" href="http://www.raovatdanang.vn/member.php?self=guest&mode=add">Đăng tin</a>
			&nbsp;-&nbsp;
			<a rel="nofollow" href="http://www.raovatdanang.vn/member.php?self=login">Đăng nhập</a>
			&nbsp;-&nbsp;
			<a rel="nofollow" href="http://www.raovatdanang.vn/member.php?self=register">Đăng ký</a>
			&nbsp;-&nbsp;
			<a title="Trung tâm trợ giúp" rel="nofollow" href="http://www.raovatdanang.vn/help.php">Trợ giúp</a>
			&nbsp;-&nbsp;
			<a title="Sitemap" rel="nofollow" href="http://www.raovatdanang.vn/sitemap.html">Sitemap</a>
			&nbsp;-&nbsp;
			<a rel="nofollow" href="http://www.raovatdanang.vn/help.php?self=contact">Liên hệ</a>
			</td>
			</tr>
			<tr>
			<td class="copyrightbars" align="center">
			Copyright &copy; 2011.
			<a href="http://www.raovatdanang.vn">
			<b>www.raovatdanang.vn</b>
			</a>
			</td>
			</tr>
			<tr>
			<td class="footbar_tools">
			<div align="center">
			<a target="_blank" href="http://www.raovatdanang.vn/help.php?self=detail&id=1">Quy định đăng tin</a>
			&nbsp;|&nbsp;
			<a target="_blank" href="http://www.raovatdanang.vn/help.php?self=detail&id=2">Quy chế thành viên</a>
			</div>
			</td>
			</tr>
			<tr>
			<td class="footbar_tools">
			<p class="style1" align="center">Xem tốt nhất trên Internet Explorer với độ phân giải 1024 x 768</p>
			</td>
			</tr>
			</table>
	
	</div>
</div>
</body>
</html>
